<template>
	<view class="bigBox">
		<u-navbar leftIconColor='#fff' :autoBack="true" bgColor='#000' title='确认订单' titleStyle="color:#fff;">
		</u-navbar>
		<view class="addressBox">
			<view class="box">
				<view class="icon">
					<image src="@/static/icon/address.png" ></image>
				</view>
				<view class="text" @click="goAddress">
					<view class="top">
						<view class="name">李老板</view>
						<view class="number">1810 **** 2267</view>
					</view>
					<view class="address">广东省广州市越秀区先烈中路80号1906-1907</view>
				</view>
				<view class="icon">
					<u-icon name='arrow-right' color='#101010'></u-icon>
				</view>
			</view>
		</view>
		<view class="shopBox">
			<view class="box">
				<u-avatar :src="src" shape="square" size='40rpx'></u-avatar>
				<view class="name">王者叫唤师直播间商品清单</view>
			</view>
		</view>
		<view class="shopDetails">
			<view class="box">
				<u-avatar :src="src" shape="square" size='160rpx'></u-avatar>
				<view class="details">
					<view class="name">索尼（SONY）KDL-50W660F 50英寸全高清液晶电视（黑色）</view>
					<view class="price">
						<view class="tabs">
							<template v-for="item in 2">
								<view class="tabBtn">单人沙发</view>
							</template>
							<text class="text">X 1</text>
						</view>
						<view class="number">¥1288.00</view>
					</view>
				</view>
			</view>
		</view>
		<view class="totalBox">
			<view class="box">
				<view class="textBox">
					<view class="name">商品合计</view>
					<view class="present">¥1288.00</view>
				</view>
				<view class="textBox">
					<view class="name">运费</view>
					<view class="present1">包邮</view>
				</view>
				<view class="textBox">
					<view class="name">优惠券</view>
					<view class="present1">有 1 张可使用 <u-icon name='arrow-right' color='#101010' size='20rpx'></u-icon></view>
				</view>
			</view>
		</view>
		<view class="wordsBox">
			<view class="box">
				<view class="name">订单留言</view>
				<u--textarea class="field" v-model="value1" border='none' autoHeight placeholder="选填，建议先与商家协商一致" ></u--textarea>
			</view>
		</view>
		<view class="payMoney">
			<view class="box">
				<view class="name">订单合计</view>
				<view class="money">¥1288.00</view>
			</view>
		</view>
		<view class="payBtnBox">
			<view class="box">
				<view class="text">订单实付 <text class="money">¥1088.00</text></view>
				<view class="payBtn">确认订单</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return{
				src:'https://cdn.uviewui.com/uview/album/7.jpg',
				value1:''
			}
		},
		
		methods:{
			getValue(list){
			    console.log(list,'B页面传递的数据')
			},
			goAddress(){
				uni.navigateTo({
					url:'/pages/shop/addressManagement'
				})
			}
		}
	}
</script>

<style>
	.bigBox {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding-top: 170rpx;
		height: calc(100vh - 170rpx);
		background-color: #F8F8F8;
	}
</style>
<style lang="less">
	.payBtnBox{
		position: fixed;
		bottom: 0;
		margin-top: 20rpx;
		padding-top: 10rpx;
		width: 750rpx;
		padding-bottom: 40rpx;
		background-color: #fff;
		display: flex;
		justify-content: center;
		.box{
			width: 670rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;
			.text{
				color: rgba(190, 199, 209, 100);
				font-size: 20rpx;
				.money{
					color: rgba(255, 78, 95, 100);
					font-size: 28rpx;
				}
			}
			.payBtn{
				width: 216rpx;
				height: 70rpx;
				line-height: 70rpx;
				background-color: rgba(254, 76, 70, 100);
				color: rgba(255, 255, 255, 100);
				font-size: 24rpx;
				text-align: center;
			}
		}
		
		
	}
	.payMoney{
		margin-top: 8rpx;
		width: 750rpx;
		height: 126rpx;
		background-color: #fff;
		display: flex;
		justify-content: center;
		.box{
			width: 670rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			.name{
				color: rgba(12, 16, 47, 100);
				font-size: 24rpx;
				font-weight: 600;
			}
			.money{
				font-weight: 700;
				color: rgba(255, 78, 95, 100);
				font-size: 28rpx;
			}
		}
	}
	.wordsBox{
		margin-top: 2rpx;
		width: 750rpx;
		background-color: #fff;
		display: flex;
		padding: 20rpx 0;
		justify-content: center;
		.box{
			width: 670rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			
			.name{
				color: rgba(12, 16, 47, 100);
				font-size: 24rpx;
				font-weight: 600;
				
			}
			.field{
				margin-left: 14rpx;
			}
		}
	}
	.totalBox{
		margin-top: 2rpx;
		width: 750rpx;
		height: 254rpx;
		background-color: #fff;
		display: flex;
		justify-content: center;
		.box{
			width: 670rpx;
			display: flex;
			flex-direction: column;
			justify-content: space-around;
			.textBox{
				display: flex;
				justify-content: space-between;
				.name{
					color: rgba(12, 16, 47, 100);
					font-size: 24rpx;
					font-weight: 600;
				}
				.present{
					font-weight: 700;
					color: rgba(12, 16, 47, 100);
					font-size:28rpx;
				}
				.present1{
					color: rgba(190, 199, 209, 100);
					font-size:28rpx;
					display: flex;
					align-items: center;
					justify-content: center;
				}
			}
		}
	}
	.shopDetails{
		margin-top: 2rpx;
		width: 750rpx;
		height: 208rpx;
		background-color: #fff;
		display: flex;
		justify-content: center;
		.box{
			width: 670rpx;
			display: flex;
			align-items: center;
			.details{
				height: 208rpx;
				margin-left: 20rpx;
				display: flex;
				flex-direction: column;
				justify-content: space-around;
				.name{
					font-weight: 700;
					color: rgba(0, 7, 15, 100);
					font-size: 24rpx;
				}
				.price{
					display: flex;
					align-items: center;
					justify-content: space-between;
					.tabs{
						display: flex;
						align-items: center;
						.tabBtn{
							padding: 0 10rpx; 
							height: 40rpx;
							line-height: 40rpx;
							background-color: rgba(248, 248, 248, 100);
							color: rgba(190, 199, 209, 100);
							font-size: 20rpx;
							margin-right: 10rpx;
						}
						.text{
							color: rgba(190, 199, 209, 100);
							font-size: 20rpx;
						}
					}
					.number{
						color: rgba(12, 16, 47, 100);
						font-size: 28rpx;
					}
				}
			}
		}
	}
	.shopBox{
		margin-top: 8rpx;
		width: 750rpx;
		height: 60rpx;
		background-color: #fff;
		display: flex;
		justify-content: center;
		.box{
			width: 670rpx;
			display: flex;
			align-items: center;
			.name{
				margin-left: 20rpx;
				color: rgba(44, 101, 247, 100);
				font-size: 24rpx;
			}
		}
	}
	.addressBox{
		width: 750rpx;
		height: 164rpx;
		background-color: #fff;
		display: flex;
		justify-content: center;
		.box{
			width: 670rpx;
			height: 164rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			.icon{
				width: 40rpx;
				image{
					width: 40rpx;
					height: 40rpx;
				}
			}
			.text{
				height: 140rpx;
				display: flex;
				flex-direction: column;
				justify-content: space-around;
				.top{
					
					display: flex;
					align-items: center;
					justify-content: flex-start;
					.name{
						font-weight: 700;
						color: rgba(0, 7, 15, 100);
						font-size: 24rpx;
					}
					.number{
						margin-left: 40rpx;
						color: rgba(190, 199, 209, 100);
						font-size: 24rpx;
					}
				}
				.address{
					color: rgba(190, 199, 209, 100);
					font-size: 24rpx;
				}
			}
		}
	}
</style>